package com.yazi.mxz.common.db.dao.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.yazi.mxz.common.db.dao.AdDao;
import com.yazi.mxz.common.entity.beans.Ad;

import com.myframework.smhj.hibernate.dao.BasicDao;

@Repository("adDao")
public class AdDaoImpl extends BasicDao<Ad> implements AdDao {

	public AdDaoImpl() {
		super(Ad.class);
	}
	
	@Override
	public void deleteByStoreId(long storeId, long[] adIds) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("storeId", storeId);
		map.put("adIds", adIds);
		executeUpdate("delByStoreIdHql", map);
	}

}
